import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

//反向代理
export default defineConfig({
  server: {
    proxy: {
      '/api': {
        target: 'http://39.107.78.244:10011',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, '')
    },
  }
},
  
  plugins: [vue()],
})